package com.leyou.constant;

/**
 * @Author lixin
 * @Date 2018/10/24 16:50
 * @Version 1.0
 * @Description TODO
 **/
public class DefineException extends RuntimeException {

    //错误码
    private int errorCode;


    public DefineException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

}
